package cn.edu.pku.wxlib.vo.response;

import cn.org.rapid_framework.util.DateConvertUtils;
import javacommon.base.BaseEntity;

/**
 * @version 1.0
 * @since 1.0
 */


public class StudentUser extends BaseEntity implements java.io.Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private java.lang.Integer userId;
	private java.lang.Integer studentId;
	private java.lang.String userName;
	private java.lang.String name;
	private java.lang.String password;
	private java.util.Date birth;
	private java.lang.Integer gender;
	private java.lang.String tel;
	private java.lang.String phone;
	private java.lang.String email;
	private java.lang.Integer type;
	private java.lang.Integer borrowTypeId;
	private java.util.Date createTime;
	private java.lang.Integer state;
	private java.lang.Integer studentNumber;
	private java.lang.String school;
	private java.lang.String major;
	private java.lang.String direction;
	private java.lang.String entranceClass;
	private java.lang.Integer minYear;
	private java.lang.Integer maxYear;
	
	
	public java.lang.Integer getStudentId() {
		return studentId;
	}

	public void setStudentId(java.lang.Integer studentId) {
		this.studentId = studentId;
	}

	public java.lang.Integer getRelatedId() {
		return studentId;
	}

	public java.lang.Integer getStudentNumber() {
		return studentNumber;
	}

	public void setStudentNumber(java.lang.Integer studentNumber) {
		this.studentNumber = studentNumber;
	}

	public java.lang.String getSchool() {
		return school;
	}

	public void setSchool(java.lang.String school) {
		this.school = school;
	}

	public java.lang.String getMajor() {
		return major;
	}

	public void setMajor(java.lang.String major) {
		this.major = major;
	}

	public java.lang.String getDirection() {
		return direction;
	}

	public void setDirection(java.lang.String direction) {
		this.direction = direction;
	}

	public java.lang.String getEntranceClass() {
		return entranceClass;
	}

	public void setEntranceClass(java.lang.String entranceClass) {
		this.entranceClass = entranceClass;
	}

	public java.lang.Integer getMinYear() {
		return minYear;
	}

	public void setMinYear(java.lang.Integer minYear) {
		this.minYear = minYear;
	}

	public java.lang.Integer getMaxYear() {
		return maxYear;
	}

	public void setMaxYear(java.lang.Integer maxYear) {
		this.maxYear = maxYear;
	}

	public StudentUser(){
	}

	public StudentUser(
		java.lang.Integer userId
	){
		this.userId = userId;
	}

	public void setUserId(java.lang.Integer value) {
		this.userId = value;
	}
	
	public java.lang.Integer getUserId() {
		return this.userId;
	}
	public void setUserName(java.lang.String value) {
		this.userName = value;
	}
	
	public java.lang.String getUserName() {
		return this.userName;
	}
	public void setName(java.lang.String value) {
		this.name = value;
	}
	
	public java.lang.String getName() {
		return this.name;
	}
	public void setPassword(java.lang.String value) {
		this.password = value;
	}
	
	public java.lang.String getPassword() {
		return this.password;
	}
	
	public void setBirth(java.util.Date value) {
		this.birth = value;
	}
	
	public java.util.Date getBirth() {
		return this.birth;
	}
	public void setGender(java.lang.Integer value) {
		this.gender = value;
	}
	
	public java.lang.Integer getGender() {
		return this.gender;
	}
	public void setTel(java.lang.String value) {
		this.tel = value;
	}
	
	public java.lang.String getTel() {
		return this.tel;
	}
	public void setPhone(java.lang.String value) {
		this.phone = value;
	}
	
	public java.lang.String getPhone() {
		return this.phone;
	}
	public void setEmail(java.lang.String value) {
		this.email = value;
	}
	
	public java.lang.String getEmail() {
		return this.email;
	}
	public void setType(java.lang.Integer value) {
		this.type = value;
	}
	
	public java.lang.Integer getType() {
		return this.type;
	}
	public void setBorrowTypeId(java.lang.Integer value) {
		this.borrowTypeId = value;
	}
	
	public java.lang.Integer getBorrowTypeId() {
		return this.borrowTypeId;
	}
	
	public void setCreateTime(java.util.Date value) {
		this.createTime = value;
	}
	
	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	public void setState(java.lang.Integer value) {
		this.state = value;
	}
	
	public java.lang.Integer getState() {
		return this.state;
	}
	
	//date formats
	public static final String FORMAT_BIRTH = DATE_FORMAT;
	public static final String FORMAT_CREATE_TIME = DATE_FORMAT;
	public String getBirthString() {
		return DateConvertUtils.format(getBirth(), FORMAT_BIRTH);
	}
	public void setBirthString(String value) {
		setBirth(DateConvertUtils.parse(value, FORMAT_BIRTH,java.util.Date.class));
	}
	public String getCreateTimeString() {
		return DateConvertUtils.format(getCreateTime(), FORMAT_CREATE_TIME);
	}
	public void setCreateTimeString(String value) {
		setCreateTime(DateConvertUtils.parse(value, FORMAT_CREATE_TIME,java.util.Date.class));
	}
}


